package com.zjz.springcloud.dao;

import com.zjz.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper    // Mybatis的
@Repository // spring的
public interface DeptDao {

     public boolean addDept(Dept dept);

     public Dept queryById(@Param("deptno")Long deptno);

     public List<Dept> queryAll();


}
